import 'package:flutter/material.dart';

class ImagesAssets {
  static Map<String, AssetImage> _maps = {};

  static AssetImage get buyJd => lazyLoadImage('assets/images/buy_jd.png');
  static AssetImage get buyTb => lazyLoadImage('assets/images/buy_tb.png');

  static AssetImage get qqbg => lazyLoadImage('assets/images/qqbg.jpg');
  static AssetImage get splash => lazyLoadImage('assets/images/splash.png');

  static AssetImage lazyLoadImage(String res) {
    return _maps.putIfAbsent(res, () => AssetImage(res));
  }
}
